package com.windfone.dao;

import java.util.List;

import com.windfone.model.Order;
import com.windfone.model.ReceiveMsg;

public interface OrderDao {
    public int deleteOrder(int keyValue);
    public int getAllRecorderNumber( );
    public int updateOrder(Order bean);
    public int insertOrder(Order bean );
    public List<Order> getOrderByUserId(int userId);
    public List<Order> getOrderByOrderSeq(String orderSeq);
    public List<Order> getAllOrder(int beginRecord);
    
    public int insertReceiveMsg(ReceiveMsg bean );
    public List<ReceiveMsg> getReceiveMsgByUserId(int userId);
    public List<ReceiveMsg> getReceiveMsgByUserId(int userId,int limit);
    public ReceiveMsg getReceiveMsgByOrderId(int OrderId);
    public ReceiveMsg getReceiveMsgByOrderId(String orderSeq);
	public List<Order> getOrderByCondition(String whereCondition);
	public List<ReceiveMsg> getReceiveByCondition(String whereCondition);
	public int updateReceiveMsg(String orderSeq,int status);
	public int updateReceiveMsg(ReceiveMsg bean);
	public List<ReceiveMsg> getReceiveMsgByUserIdAndCondition(int id,String whereStr);
	public int deleteOrderByOrderSeq(String orderSeq);
	public int delteReceiveMsg(String orderSeq);
	public int deleteOrderByOrderSeqMemberId(String orderSeq,int memberId);
	public int delteReceiveMsgByOrderSeqAndMemberId(String orderSeq,int memberId);
	public int updateReceiveMsgByUser(ReceiveMsg updateReceiveMsg);
}
